import request from '@/utils/request';

export function getPrint(query) {
	return request({
		url: `/api/yly/list`,
		method: "GET",
		params: query
	})
}

export function getPrintInfo(id) {
	return request({
		url: `/api/yly/${id}`,
		method: 'GET'
	})
}

export function createPrint(query) {
	return request({
		url: `/api/yly/insert`,
		method: "POST",
		data: query
	})
}

export function updatePrint(query) {
	return request({
		url: `/api/yly/updateY`,
		method: 'POST',
		data: query
	})
}

export function printOrder(query) {
	return request({
		url: `/api/yly/grant`,
		method: 'POST',
		data: query,
	})
}

export function bindPrint(query) {
	return request({
		url: `/api/yly/update`,
		method: 'PUT',
		params: query
	})
}

export function deleteManyPrint(query) {
	return request({
		url: `/api/yly/deleteId`,
		method: 'POST',
		data: query
	})
}
